package com.sse.product.rbac.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sse.product.rbac.entity.User;
import com.sse.product.rbac.entity.UserRole;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author junyongli
 * @since 2022-07-22
 */
public interface IUserRoleService extends IService<UserRole> {
    List<Long> queryRoleIdByUser(User user);

    Integer deleteRoleByUser(User user);

    boolean addRolesByUser(Long id, List<Long> roleIdList);
}
